﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Customer.aspx.cs" Inherits="Customer" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <link rel="stylesheet" type="text/css" href="assets/css/jquery.autocomplete.css" />
    <link rel="stylesheet" type="text/css" href="assets/css/thickbox.css" />
    <link rel="stylesheet" href="assets/css/reset.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/styleexpress.css" type="text/css" />
    <link rel="stylesheet" href="assets/css/invalid.css" type="text/css" media="screen" />
    <link rel="stylesheet" type="text/css" href="assets/css/datepicker.css" />
    <script src="assets/js/jquery-1.4.2.js" type="text/javascript"></script>
    <script type='text/javascript' src="assets/js/jquery.autocomplete.js"></script>
    <script type='text/javascript' src="assets/js/Carrs.js"></script>
    <script type='text/javascript' src="assets/js/Ports.js"></script>
    <script type='text/javascript' src="assets/js/common.js"></script>
    <style type="text/css">
        input[type=text], input[type=password], textarea, select {
            border: none;
            width: 80%;
        }

            input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus {
                border-color: #4488cc;
                border-style: solid;
                border-width: 1px;
                margin: 0;
                background-color: #FCFFC5 !important;
            }

        .row {
            border-bottom: 1px solid #E9E9E9;
        }

        td label {
            display: inline;
        }

        td.key {
            width: 240px !important;
            font-size: 12px !important;
            font-weight: normal !important;
        }

        textarea {
            margin: 0em;
            outline: none;
            text-align: justify;
            overflow: hidden;
            resize: none;
        }
    </style>
    <script type="text/javascript">
        $(function () {
            $("textarea").each(function (e) {
                //  the following will help the text expand as typing takes place
                while ($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) {
                    $(this).height($(this).height() + 1);
                };
            })
            //  changes mouse cursor when highlighting loawer right of box
            $("textarea").mousemove(function (e) {
                var myPos = $(this).offset();
                myPos.bottom = $(this).offset().top + $(this).outerHeight();
                myPos.right = $(this).offset().left + $(this).outerWidth();

                if (myPos.bottom > e.pageY && e.pageY > myPos.bottom - 16 && myPos.right > e.pageX && e.pageX > myPos.right - 16) {
                    $(this).css({ cursor: "nw-resize" });
                }
                else {
                    $(this).css({ cursor: "" });
                }
            })
            //  the following simple make the textbox "Auto-Expand" as it is typed in
            .keyup(function (e) {
                //  the following will help the text expand as typing takes place
                while ($(this).outerHeight() < this.scrollHeight + parseFloat($(this).css("borderTopWidth")) + parseFloat($(this).css("borderBottomWidth"))) {
                    $(this).height($(this).height() + 1);
                };
            });
        });
        function ReloadParent() {
            var href = window.opener.location.href;
            try {
                var tabid = window.opener.GetTabID();
                if (href.indexOf("tid=") < 0) {
                    if (href.indexOf("?") < 0) {
                        href += "?tid=" + tabid;
                    } else {
                        href += "&tid=" + tabid;
                    }
                }
            } catch (err) { }
            window.opener.location.href = href;
            window.close();
        }
        function doDelete(strid) {
            if (confirm('Bạn có thực sự muốn xóa?')) {
                var url = "Customer.aspx?mid=" + strid + "&action=DeleteMeeting";
                var picid = getUrlVars()["picid"];
                var id = getUrlVars()["id"];
                if (typeof picid != "undefined") {
                    url += "&picid=" + picid;
                }
                if (typeof id != "undefined") {
                    url += "&id=" + id;
                }
                window.location.href = url;
            }
        }
    </script>
</head>
<body>
    <div id="body-wrapper">
        <div id="main-content1">
            <h2>HỒ SƠ ĐỐI TÁC</h2>
            <div class="content-box">
                <form id="frmCarrContact" runat="server" autocomplete="off">
                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">PROFILE</h3>
                    </div>
                    <fieldset>
                        <table class="paramlist admintable " style="width: 100%; text-align: left">
                            <tr>
                                <td class="key">Họ tên
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtHoten"></asp:TextBox>
                                </td>
                                <td class="key">Năm sinh
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtBirthDay"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="key">Vị trí
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtVitri"></asp:TextBox>
                                </td>
                                <td class="key">Type người
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtVCNangKhieu"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="key">Quê quán
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtQueQuan"></asp:TextBox>
                                </td>
                                <td class="key">Thường trú
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtThuongTru"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="key">Tốt nghiệp trường
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtTrinhDo"></asp:TextBox>
                                </td>
                                <td class="key">Sở thích
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtSoThich"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="key">Quê vợ (chồng)
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtVCQue"></asp:TextBox>
                                </td>
                                <td class="key">Nghề nghiệp của vợ (chồng)
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtVCNgheNghiep"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="key">Con(mấy trai, mấy gái, trường học)
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtConcai"></asp:TextBox>
                                </td>
                                <td class="key">Khả năng đặc biệt của con cái
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtNangKhieuCon"></asp:TextBox>
                                </td>
                            </tr>
                            <tr>
                                <td class="key">Các ghi chú khác
                                </td>
                                <td align="left" class="row">
                                    <asp:TextBox runat="server" ID="txtNote"></asp:TextBox>
                                </td>
                                <td class="key">Tặng quà loại
                                </td>
                                <td align="left" class="row">
                                    <table>
                                        <tr>
                                            <asp:RadioButtonList ID="cbLoaiKhachHang" runat="server" RepeatDirection="Horizontal">
                                                <asp:ListItem Text=" A " Value="1"></asp:ListItem>
                                                <asp:ListItem Text=" B " Value="2"></asp:ListItem>
                                                <asp:ListItem Text=" C " Value="3"></asp:ListItem>
                                            </asp:RadioButtonList>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <div style="margin: 10px;">
                        </div>
                    </fieldset>
                    <div class="content-box-header">
                        <h3 style="cursor: s-resize;">NHẬT KÝ GẶP GỠ
                        </h3>
                    </div>
                    <fieldset>
                        <asp:Repeater ID="rpDiaryEachMeeting" runat="server">
                            <ItemTemplate>
                                <tr onmouseover="this.style.background='#dbf0c9'" onmouseout="this.style.background='#ffffff'">
                                    <td align="center">
                                        <asp:TextBox ID="MeetingPlace" runat="server" Width="90%" TextMode="MultiLine" Rows="1"
                                            Text='<%# DataBinder.Eval(Container.DataItem, "MeetingPlace") %>'></asp:TextBox>
                                        <asp:HiddenField ID="ID" runat="server" Value='<%# DataBinder.Eval(Container.DataItem, "ID")%>'></asp:HiddenField>
                                    </td>
                                    <td align="center">
                                        <asp:TextBox ID="Description" runat="server" Width="90%" TextMode="MultiLine" Rows="1"
                                            Text=' <%# DataBinder.Eval(Container.DataItem, "Description") %>'></asp:TextBox>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "LastUpdate")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Action")%>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <HeaderTemplate>
                                <table cellspacing="0" cellpadding="0" width="100%" border="0" class="adminlist">
                                    <thead>
                                        <tr>
                                            <th align="center" class="thheader" width="30%">Gặp tại
                                            </th>
                                            <th align="center" class="thheader">Nội dung giao tiếp
                                            </th>
                                            <th align="center" class="thheader" width="50px">Update
                                            </th>
                                            <th align="center" class="thheader" width="50px">Action
                                            </th>
                                        </tr>
                                    </thead>
                            </HeaderTemplate>
                            <FooterTemplate>
                                </TABLE>
                            </FooterTemplate>
                        </asp:Repeater>
                    </fieldset>
                    <div class="clear">
                    </div>
                    <style type="text/css">
                        #footer {
                            padding: 2px;
                            border: 1px solid #5b958e;
                            background-color: #e9eae5;
                            width: 98%;
                            left: 1px;
                            bottom: 0px;
                            position: fixed;
                            height: 30px;
                        }
                    </style>
                    <div style="display: inline;" id="footer">
                        <asp:Button ID="Button1" runat="server" Text="Update" class="button" OnClick="btnSave_Click" />
                        <input type="button" id="Exit" value="Exit" class="button" onclick="window.close();" />
                    </div>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
